//
//  ConversionViewController.h
//  DSNDialer
//
//  Created by Chris Morrell on 4/30/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "PhoneBookEntry.h"


@interface ConversionViewController : UIViewController <UIAlertViewDelegate>{
	IBOutlet UITextField *phoneNumberField;
	IBOutlet UIButton *convertButton;
	IBOutlet UIButton *recentButton;
	IBOutlet UIButton *dsnDirectoryButton;
	IBOutlet UISegmentedControl *dsnCommercialChooser;
	IBOutlet UIView *splashView;
	NSMutableArray *recentArray;
	IBOutlet UIButton *infoButton;
}

@property (nonatomic, retain) IBOutlet UITextField *phoneNumberField;
@property (nonatomic, retain) IBOutlet UIButton *convertButton;
@property (nonatomic, retain) IBOutlet UIButton *recentButton;
@property (nonatomic, retain) IBOutlet UIButton *dsnDirectoryButton;
@property (nonatomic, retain) IBOutlet UISegmentedControl *dsnCommercialChooser;
@property (nonatomic, retain) NSMutableArray *recentArray;
@property (nonatomic, retain) IBOutlet UIButton *infoButton;

-(IBAction)convertButtonAction:(id)sender;
-(IBAction)recentButtonAction:(id)sender;
-(IBAction)dsnDirectoryButtonAction:(id)sender;
-(PhoneBookEntry *)convertThisNumber:(NSString *)number fromDSN:(BOOL)dsn;
-(NSString *)formatPhoneNumber:(NSString *)unformattedNumber;
-(void)showSplash;
-(void)hideSplash;
-(IBAction)infoButtonAction:(id)sender;

@end
